// pages/message_board/message_board.js
Page({

  /**
   * 页面的初始数据
   */
  data: {
    text:'',
  },
  textInput:function (e) {
    this.data.text = e.detail.value
  },
  Submit:function (e) {
    var that = this
    if(that.data.text==''){
        wx.showModal({
          title:"提示",
          content:"请输入文字",
          showCancel:false,
          success(res){}
          })
    }
    else{
        console.log('success')
    }
  },
        // 获取输入框的值
        getDataBindTap: function(e) {
          var information = e.detail.value;
          var value = e.detail.value.length;
          var lastArea = 60 - value;
          var that = this;
          that.setData({
            information: information,
            lastArea: lastArea
          })
        },
  
})